//
//  ZMDiscoverRecommendHotRecommCell.h
//  基本框架
//
//  Created by runone02 on 2018/7/4.
//  Copyright © 2018年 liqiyun. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ZMWaterFlowLayout.h"
#import "ZMHotRecommendModel.h"
#import "ZMInsetHomeModel.h"

@class ZMDiscoverRecommendHotRecommCellWater;

@interface ZMDiscoverRecommendHotRecommCell : UITableViewCell

@property (nonatomic, strong) NSArray *dataArray;
@property (nonatomic, assign) CGFloat cacheHeight;

/**必须更新*/
@property (nonatomic, assign) BOOL    needUpdate;
@property (nonatomic, copy) void(^updateCellHeight)(CGFloat);
@property (nonatomic, assign) itemStyle style;

@end

@class ZMDiscoverRecommendHotRecommCellWaterView,ZMDiscoverRecommendProfileView;
@interface ZMDiscoverRecommendHotRecommCellWater : UICollectionViewCell

/** 容器 */
@property (nonatomic, strong) UIView                                        *mainView;
@property (nonatomic, strong) ZMDiscoverRecommendHotRecommCellWaterView     *view;
@property (nonatomic, strong) ZMDiscoverRecommendProfileView                *profileView;
@property (nonatomic, strong) ZMHotRecommendModel *model;

#pragma mark - 根据布局来确定UI
- (void)setupUIWithRecommend:(itemStyle)style model:(ZMHotRecommendModel *)model;
- (void)setupUIWithPost:(itemStyle)style model:(id)model;

@end


@interface ZMDiscoverRecommendHotRecommCellWaterView : UIView

/** 容器 */
@property (nonatomic, strong) UIView *mainView;
/** 点击 */
@property (nonatomic, copy) void(^clickMainView)();
/** 封面图 */
@property (nonatomic, strong) ZMImageView *thumbImageView;
/** top1 专属 icon */
@property (nonatomic, strong) UIImageView *topImageView;
/** top1 专属 标致 */
@property (nonatomic, strong) UIButton *topButton;
/** 底部渐变层 */
@property (nonatomic, strong) UIImageView *bottomShadow;

@end


@interface ZMDiscoverRecommendProfileView : UIView

@property (nonatomic, strong) UIView *mainView;
@property (nonatomic, strong) UIImageView *thumbImageView;
@property (nonatomic, strong) UILabel *nameLabel;
@property (nonatomic, strong) UIButton *praiseButton;
@property (nonatomic, copy)      void(^praiseBlock)(BOOL);

@end

